﻿
using Xacml.Core.Interfaces;
using System;
using System.Collections;

namespace Xacml.Core.Policy
{
  public class IExpressionCollection : IExpressionCollectionReadWrite
  {
    public IExpressionCollection(IExpressionCollectionReadWrite items)
    {
      foreach (IExpression expression in (CollectionBase) items)
        this.List.Add((object) expression);
    }

    public IExpressionCollection()
    {
    }

    public override void Clear()
    {
      throw new NotSupportedException();
    }

    public override void RemoveAt(int index)
    {
      throw new NotSupportedException();
    }
  }
}
